<?php
  include_once("./config.php");
  $id=$_GET['id'];
  $t=$_GET['t'];  
  if($_GET['del']==1)
  {
	$tb = 3;
	$show = "該用戶已經列入黑名單!";
  }elseif($t==1){
	$tb = 2;
	$show = "提升房東成功!";
  }else{
	$tb = 1;
	$show = "該用戶成功為房客!";
  }
  $sel ="update $TBL_MEM set type =$tb WHERE id=$id";
  mysql_query($sel);   
  MyNotice($show,1,"news.php"); 
  exit(0);
?>
